#ifndef RICHTEXT_H
#define RICHTEXT_H

#include <QString>
#include <QList>
#include <QTextDocument>
#include <QImage>

namespace RichText
{
	QList<QString> getImageResourceNames(QTextDocument* pDoc);
	bool containsImages(QTextDocument* pDoc);
	QImage getLastImage(QTextDocument* pDoc);
	void alignAllText(QTextDocument* pDoc, Qt::AlignmentFlag alignment);
	QString appendImage(QString html, QString imageResourceName);
	QString buildImageTag(QString imageResourceName);
	QString formatToHTML(QString str);
}


#endif // RICHTEXT_H
